<template>
  <div class="header">
    <el-menu
      :default-active="activeIndex2"
      class="el-menu-demo"
      mode="horizontal"
      router
      background-color="#545c64"
      @select="handleSelect"
      text-color="#fff"
      active-text-color="#ffd04b"
      style="height:60px"
    >
      <el-menu-item index="0" style="width:40%">
        <h3 style="font-size:20px;width:100%">万润达后台管理</h3>
      </el-menu-item>
      <el-menu-item index="1">我的操作平台</el-menu-item>
      <el-menu-item index="2">订单查询</el-menu-item>
      <el-submenu index="3">
        <template slot="title">管理中心</template>
        <el-menu-item index="3-1">订单管理</el-menu-item>
        <el-menu-item index="3-2">广告管理</el-menu-item>
        <el-menu-item index="3-3">视频管理</el-menu-item>
      </el-submenu>
      <el-menu-item index="4">消息中心</el-menu-item>
      <el-submenu index="5">
        <template slot="title">个人管理</template>
        <el-menu-item index="5-1">个人资料</el-menu-item>
        <el-menu-item index="5-2">权限</el-menu-item>
        <el-menu-item index="5-3" route="/login">退出</el-menu-item>
      </el-submenu>
    </el-menu>
  </div>
</template>

<script>
export default {
  props: {},
  data() {
    return {
      activeIndex: "1",
      activeIndex2: "1"
    };
  },

  watch: {},

  methods: {
    handleSelect(key, keyPath) {
      console.log(key, keyPath);
    }
  }
};
</script>

<style  scoped>
.logo {
  width: 50%;
  background-color: azure;
}
</style>